<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddUserLoanRequestsColumnRiskStatus extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('user_loan_requests', function (Blueprint $table) {
            $table->tinyInteger('risk_status')->default(0)->comment('风控状态 0=初始状态 1=通过 2=拒绝 3=继续 4=处理中 5=数据不全 6=风控错误');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('user_loan_requests', function (Blueprint $table) {
            $table->dropColumn('risk_status');
        });
    }
}
